package com.qianfeng.smartdevice.event;

import com.qianfeng.smartdevice.enums.LoginResultEnum;

/**
 * Created by wenka on 2022/3/20 16:53
 *
 * @author wenkaixin
 * @version 1.0
 * @since 1.0
 */
public class MyloginEvent {
    private LoginResultEnum loginResultEnum;
    /**
     * 当前登录的用户名
     */
    private String username;

    public MyloginEvent(LoginResultEnum loginResultEnum, String username) {
        this.loginResultEnum = loginResultEnum;
        this.username = username;
    }

    public LoginResultEnum getLoginResultEnum() {
        return loginResultEnum;
    }

    public void setLoginResultEnum(LoginResultEnum loginResultEnum) {
        this.loginResultEnum = loginResultEnum;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "MyloginEvent{" +
                "loginResultEnum=" + loginResultEnum +
                ", username='" + username + '\'' +
                '}';
    }
}
